<?php 
/**
 * Controller for ajax requests
 */
require_once 'app/env.php';

switch (@$_GET['page']) {
	case 'searchComments':
		$view = new Views\Business($_SESSION['l']);
		echo($view->viewCommentSearchResults($_POST));
		break;
	case 'searchAnalytics':
		$view = new Views\Business($_SESSION['l']);
		$view->viewAnalyticsSearchResults($_POST);
		break;
	default:
		echo('');
		break;
}